package view;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JPanel;

import ressources.Constant;

public class GamePanel extends JPanel{
	public PiocheButtonPanel btnPioche;
	public PawnButtonPanel btnPawn;
	public JButton btnContinu ;
	public GamePanel(){
		super();
		String path = "Pion5G.png";
		this.setLayout(new BorderLayout());
		this.setBackground(Color.white);
		this.setPreferredSize(new Dimension(100,500));
		
		JPanel north = new JPanel();
		north.setPreferredSize(new Dimension(100,400));
		north.setBackground(Color.white);
		btnPioche = new PiocheButtonPanel();
		btnPawn = new PawnButtonPanel(path);
		north.add(btnPioche);
		north.add(btnPawn);
		
		this.add(north,BorderLayout.NORTH);
		
		JPanel btnContinuPanel = new JPanel();
		btnContinuPanel.setBackground(Color.white);
		Icon icon = new ImageIcon(Constant.path+"valider1.png");
		btnContinu  = new JButton(icon);
		btnContinu.setBackground(Color.white);
		btnContinu.setPreferredSize(new Dimension(97,30));
		btnContinu.setBorderPainted(false);
		btnContinuPanel.add(btnContinu);
		
		this.add(btnContinuPanel,BorderLayout.SOUTH);
		
	}
}
